/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.springblade.modules.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springblade.core.mp.base.BaseService;
import org.springblade.modules.admin.dto.MaintainPlanWeeklyReportProjectPageDTO;
import org.springblade.modules.admin.dto.WeeklyReportRepairListPageDTO;
import org.springblade.modules.admin.dto.WeeklyReportRescueListPageDTO;
import org.springblade.modules.admin.entity.MaintainPlanWeeklyReport;
import org.springblade.modules.admin.vo.MaintainPlanWeeklyReportProjectDetailVO;
import org.springblade.modules.admin.vo.MaintainPlanWeeklyReportProjectPageVO;
import org.springblade.modules.admin.vo.WeeklyReportRepairListPageVO;
import org.springblade.modules.admin.vo.WeeklyReportRescueListPageVO;

import java.util.List;
import java.util.Map;

/**
 * 任务周报 服务类
 *
 * @author lsay
 * @since 2024-09-02
 */
public interface IMaintainPlanWeeklyReportService extends BaseService<MaintainPlanWeeklyReport> {

    IPage<MaintainPlanWeeklyReportProjectPageVO> maintainPlanWeeklyReportPage(IPage<MaintainPlanWeeklyReportProjectPageVO> page, MaintainPlanWeeklyReportProjectPageDTO maintainPlanWeeklyReportPageDTO);

    MaintainPlanWeeklyReportProjectDetailVO maintainPlanWeeklyReportDetail(Long reportId);

	IPage<WeeklyReportRepairListPageVO> planViewRepairListPage(IPage<WeeklyReportRepairListPageVO> page, WeeklyReportRepairListPageDTO weeklyReportRepairListPageDTO);

	IPage<WeeklyReportRescueListPageVO> planViewRescuePage(IPage<WeeklyReportRescueListPageVO> page, WeeklyReportRescueListPageDTO weeklyReportRescueListPageDTO);
	Boolean generatePlanWeeklyReport(String weekBeginTime,String weekEndTime);

	MaintainPlanWeeklyReport selectDetail(MaintainPlanWeeklyReport weeklyReport);

	List<Map<String,Object>> empElevatorList(Long buildingId, Integer typeStatus, Integer status, String startTime, String endTime);

	/**
	 * 抬头数量统计
	 * @param weeklyReportRepairListPageDTO 条件参数
	 * @return 统计结果
	 */
	Map<String, Object> repairPlanListTitleCount(WeeklyReportRepairListPageDTO weeklyReportRepairListPageDTO);

	List<WeeklyReportRescueListPageVO> planViewRescueListTitleCount(IPage<WeeklyReportRescueListPageVO> page, WeeklyReportRescueListPageDTO weeklyReportRescueListPageDTO);

	List<WeeklyReportRepairListPageVO> planViewRepairListTitleCount(IPage<WeeklyReportRepairListPageVO> page, WeeklyReportRepairListPageDTO weeklyReportRepairListPageDTO);
}
